package cn.bingo.yunsj;

import cn.bingo.yunsj.quartz.SchedulerAllJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class MyQuartzRunner implements CommandLineRunner {

    @Autowired
    public SchedulerAllJob myScheduler;

    @Override
    public void run(String... var1) throws Exception{
        myScheduler.scheduleJobs();
    }

}
